package main

fun getName(): String? {
    return "name"
}

fun main() {
    //如果返回为空则return否则赋值给name
    val name: String = getName() ?: return
    println(name.length)

    val value: String? = "Hello，world"
    //!!确保不为空
    println(value!!.length)
}

